import fetch from 'utils/fetch'

export default {
  // 获取场景列表
  getSceneList (params) {
    return fetch.post('/pc/scene/list', params)
  },
  // 添加场景
  addScene (params) {
    return fetch.post('/pc/scene/add', params)
  },
  // 上架
  handlePutOn (params) {
    return fetch.post('/pc/scene/put/away', params)
  },
  // 推荐
  handleRecommend (params) {
    return fetch.post('/pc/scene/recommend', params)
  },
  // 上新
  handleNew (params) {
    return fetch.post('/pc/scene/up', params)
  },
  // 场景审核
  handleCheck (params) {
    return fetch.post('/pc/scene/audit', params)
  },
  // 场景编辑
  editScene (params) {
    return fetch.post('/pc/scene/edit', params)
  },
  // 场景删除
  deleteScene (params) {
    return fetch.post('/pc/scene/del', params)
  },
  // 场景还原
  restoreReply (params) {
    return fetch.post('/pc/scene/restore', params)
  },
  // 获取回收站列表
  getRecycleList (params) {
    return fetch.post('/pc/scene/restore/list', params)
  },
  // 获取日志记录列表
  getLogList (params) {
    return fetch.post('/pc/scene/log/list', params)
  },
  // 获取场景详情
  getSceneDetail (params) {
    return fetch.post('/pc/scene/details', params)
  },
  //
  fixScene (params) {
    return fetch.post('/pc/scene/editInfo', params)
  }
}
